function userParam() {

    $.post("/user/getUserParam", {}, function (result) {

        if (result.flag) {
            username = result.data.uname
        } else {
            window.location.href = "/login.html"
        }
        $("#sid_greet_username").html(username)

    })


}

function VerifyLogin() {
    $.post("/user/getUserParam", {}, function (result) {
        if (!result.flag) {
            window.location.href = "/login.html"
            $.post("/user/VerifyLogin")
        }
    })
}

function GetUserParam() {
    let result;
    $.ajax({
        url:"/user/getUserParam",
        async:false,
        type:"POST",
        success: function (userParam){
            result = userParam;
        }
    })
    return result;
}
